#pragma once
#include "BurgerTimeMachine.h"

class CLockNChaseMachine:public CBurgerTimeMachine
{
protected:
	u8 SoundNMIEnable;
	u8 RAM[0x3C00];
	u8 BGRAM[0x200];
	u8 Bank;
public:
	CLockNChaseMachine();
	virtual ~CLockNChaseMachine();
	virtual int Init();
	virtual void Reset();
	virtual void Poll();
	virtual void Frame();
	virtual void SaveState(CState *s);
	virtual void LoadState(CState *s);
	virtual void RenderScreen(u8 *dest,int pitch);
	static u8 OpMainCPU(void *user,u32 addr);
	static u8 ReadMainCPU(void *user,u32 addr);
	static void WriteMainCPU(void *user,u32 addr,u8 data);
};
